package com.example.cloudcommon.config.clickhouse;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;


public interface CkService<T> extends IService<T> {
     boolean updateByIdCk(T t);
    <IDT extends Serializable> void deleteByIdCk(IDT id);
    /**
     * 根据queryWrapper删除
     *
     * @param queryWrapper  Wrapper<T>
     * @return int
     */
    int deleteByWrapCk(@Param(Constants.WRAPPER) Wrapper<T> queryWrapper);
}
